package com.csxy.six.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("lost_item")
public class LostItem {
    @TableId(value = "lost_id", type = IdType.AUTO)
    private Integer lostId;

    @TableField("title")
    private String title;

    @TableField("description")
    private String description;

    @TableField("lf_cat_id")
    private Integer lfCatId;

    @TableField("lost_time")
    private LocalDateTime lostTime;

    @TableField("location")
    private String location;

    @TableField("contact_info")
    private String contactInfo;

    @TableField("image_url")
    private String imageUrl;

    @TableField("publisher_id")
    private Long publisherId;

    @TableField("is_found")
    private Boolean isFound;

    @TableField(value = "created_at", fill = FieldFill.INSERT)
    private LocalDateTime createdAt;
}